const buf1 = Buffer.alloc(5) // 单位是字节
const buf2 = Buffer.alloc(5, 'world')

// console.log(buf1)
// console.log(buf2)

// console.log(Buffer.compare(buf1, buf2))

// const buf3 = Buffer.concat([buf1, buf2])

// console.log(buf3)
// console.log(buf3.toString())
 
// const buf4 = Buffer.from('你好')
// console.log(buf4.toString())

// console.log(Buffer.poolSize)
// console.log(Buffer.byteLength('h'))
console.log(buf1)
buf1.fill(0x6c)
buf1[1] = 0x68
console.log(buf1.toString())